import Component.*;
import Decorator.*;


//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        //TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
        // to see how IntelliJ IDEA suggests fixing it.
        System.out.println("Hello and welcome!");

        Component textBox = new TextComponents();

        Decorator decoratorBold = new DecoratorBold(textBox);

        Decorator decoratorItalic = new DecoratorItalic(decoratorBold);

        Decorator decoratorUnderline = new DecoratorUnderline(decoratorItalic);

        decoratorUnderline.operation("你好");

        decoratorBold.operation("第二个你好");

        Decorator decorator = new DecoratorBold(new DecoratorItalic(textBox));
        decorator.operation("第三个你好");



    }
}